/*
 * base_scenenode.cpp
 *
 *  Created on: 29.08.2012
 *      Author: caffeine
 */




#include "base_scenenode.h"
#include <lampe/StringUtils.h>
#include <lampe/xml/IXmlNode.h>

void readBaseSceneNodeTags(irr::scene::ISceneNode*e,lampe::xml::IXmlNode*node){
	e->setScale(node->getAttVec3F("scale",1,1,1));
	e->setPosition(node->getAttVec3F("position",0,0,0));
	e->setRotation(node->getAttVec3F("rotation",0,0,0));
    e->setID(lampe::str::makeID(node->getAttString("id")));
	e->setVisible(node->getAttBool("visible",true));
	e->setMaterialFlag(irr::video::EMF_LIGHTING,false);
}
